import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './redux/store'
import './index.css';
/*
import App from './App';
import Life from './pages/demo/Life'
import Admin from './admin'
import Router from './pages/demo/router'
import Router2 from './pages/demo/router2'
import Router3 from './pages/demo/router3'
*/
import IRouter from './router'

import * as serviceWorker from './serviceWorker';

ReactDOM.render(
    <Provider store = {store}>
        <IRouter />
    </Provider>, 
    document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
